package com.loong.nnm.controller;

import com.loong.nnm.services.XCServices;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class XCController {

    @Resource
    XCServices xcServices;

    @GetMapping("/node/{node}/connections")
    public String getConnections(@PathVariable String node) {
        System.out.println(node);
        return xcServices.getConnections(node);
    }

}
